import {Route} from '@ant-design/pro-layout/lib/typings';
import {RouteConfig} from 'react-router-config';
import List from '@/pages/list';
import Update from '@/pages/update';

import {Redirect} from 'react-router-dom';
import React from 'react';

export default [

   {
      path: '/list',
      name: '区带异常查看',
      component: List
   },

   {
      path: '/update',
      name: '图像上传',
      component: Update
   },
   {
      path: '**',
      render: () => React.createElement(Redirect, {
         to: '/list'
      })
   }
] as RouteConfig[] & Route[];
